#include <iostream>
#include <cstring>
using namespace std;
//-----基类的定义
class Student
{
private:
  int stdno;
  char name[20];
  int age;
  char classname[20];
  char schoolname[20];

public:
  //构造函数
  Student(int stdno, char name[], int age, char classname[], char schoolname[])
  {
    this->stdno = stdno;
    strcpy(this->name, name);
    this->age = age;
    strcpy(this->classname, classname);
    strcpy(this->schoolname, schoolname);
  }

  void show()
  {
    cout << stdno << "\t";
    cout << name << "\t";
    cout << age << "\t";
    cout << classname << "\t";
    cout << schoolname << "\t";
  }
};

class CollegeStudent : public Student //派生类，本科生，公有继承
{
private:
  char classteacher[20];
public:
  //构造函数
  CollegeStudent(int stdno, char name[],int age,char classname[],char schoolname[], )
}
